package org.advanced.rpc;

import org.advanced.IHelloService;

/**
 * @author John.zhang
 * @version Id: RpcClient2, v 1.0 2020/12/14 17:13 ZhiYong Exp $
 */
public class RpcClient2 {

    public static void main(String[] args) {

        RpcProxyClient rpcProxyClient = new RpcProxyClient();
        IHelloService helloService = rpcProxyClient.clientProxy(IHelloService.class,"localhost",8080);;
        String content = helloService.sayHello("Jonson");
        System.out.println(content);
    }

}
